<template>
  <div class="cut_item">
    <div class="cut_item_left">
      <img :src="$fnc.getImgUrl(info.piclink)" alt />
      <div class="shop-video-icon" v-if="info.video">
        <div>
          <img src="../../../assets/img/play.png" alt />
        </div>
      </div>
    </div>
    <div class="cut_item_right">
      <p>{{ info.title }}</p>
      <p>{{ info.sub_title }}</p>
      <div class="cut_item_right_price1">
        <p>
          销售价:
          <span>￥{{ info.price }}</span>
        </p>
      </div>
      <div class="cut_item_right_price2">
        <p>￥{{ info.price }}</p>
        <p>{{ info.sale }}人付款</p>
        <p @click="cut_btn(info.id)">立即购买</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "cut_shop_item",
  data () {
    return {};
  },
  props: {
    info: {
      type: Object
    }
  },
  components: {},

  methods: {}
};
</script>
<style scoped lang="less">
.cut_item {
  width: 100%;
  height: 140px;
  padding: 10px;
  margin: 0 auto 10px auto;
  background-color: #ffffff;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  border-radius: 5px;
}
.cut_item_left {
  width: 35%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* padding-right: 10px; */
}
.cut_item_left img {
  width: 100%;
  height: 100%;
}
.cut_item_right {
  width: 62%;
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  align-items: flex-start;
}
.cut_item_right > p:nth-of-type(1) {
  font-size: 14px;
  height: 36px;
  line-height: 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
}
.cut_item_right > p:nth-of-type(2) {
  width: 100%;
  /* height: 40px; */
  margin-top: 5px;
  font-size: 12px;
  color: #999;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}
.cut_item_right > p:nth-of-type(2) span {
  font-size: 10px;
  color: #ff2043;
  /* background-color: #fdebeb; */
  border: 1px solid #ff2043;
  border-radius: 3px;
  padding: 0px 10px;
  margin-right: 10px;
}
.cut_item_right_price1 {
  width: 100%;
  height: 35px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-end;
}
.cut_item_right_price1 > p:nth-of-type(1) {
  font-size: 12px;
  font-weight: bold;
  color: #000000;
  line-height: 14px;
}
.cut_item_right_price1 > p:nth-of-type(1) span {
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  color: #ff2043;
}
.cut_item_right_price2 {
  font-size: 12px;
}
.cut_item_right_price2 > p:nth-of-type(3) {
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  background-color: #ff3a63;
  background: -webkit-linear-gradient(
    to left,
    #ff3a63,
    #ff7d5e
  ); /* Safari 5.1 - 6.0 */
  background: -o-linear-gradient(
    to left,
    #ff3a63,
    #ff7d5e
  ); /* Opera 11.1 - 12.0 */
  background: -moz-linear-gradient(
    to left,
    #ff3a63,
    #ff7d5e
  ); /* Firefox 3.6 - 15 */
  background: linear-gradient(to left, #ff3a63, #ff7d5e); /* 标准的语法 */
  border-radius: 10px;
  padding: 2px 15px;
  border-radius: 20px;
}
.cut_item_right_price2 {
  width: 100%;
  height: 30px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}
.cut_item_right_price2 > p:nth-of-type(1) {
  font-size: 12px;
  color: #999;
  font-weight: bold;
}

.shop-video-icon {
  position: absolute;
  left: 0px;
  bottom: 0px;
  height: auto;
  display: flex;
  padding: 10px;
  z-index: 4;
  > div {
    display: flex;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }
  img {
    width: 30px !important;
    height: 30px;
  }
}
</style>
